(function() {
    fetch('http://chst.vip:1234/api/getsitenav').then(body => body.json()).then(res => {
        let result = res.result;
        console.log(result);
        let brandStr = '';
        result.forEach(item => {
            brandStr += `
            <li date-index="${item.navId}">
                <a href="${item.navHref}">
                    <img src="${item.navImg}" alt="${item.navTitle}">
                    <span>${item.navTitle}</span>
                </a>
            </li>
            `
        });
        $('.brand').html(brandStr)
    })
})()